CC = gcc
CFLAGS = -Wall -O2
LDFLAGS =

all: ktls_server ktls_client

ktls_server: ktls_server.o
	$(CC) $(CFLAGS) -o ktls_server ktls_server.o $(LDFLAGS)

ktls_client: ktls_client.o
	$(CC) $(CFLAGS) -o ktls_client ktls_client.o $(LDFLAGS)

ktls_server.o: ktls_server.c
	$(CC) $(CFLAGS) -c ktls_server.c

ktls_client.o: ktls_client.c
	$(CC) $(CFLAGS) -c ktls_client.c

clean:
	rm -f ktls_server ktls_client *.o

.PHONY: all clean

